package com.quality.web.server.db.dao;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.quality.web.server.db.DaoConfig;

public class BaseSqlMapDao {

  private SqlMapClient sqlMapClient;

  public BaseSqlMapDao() {
    this(DaoConfig.getSqlMapClient());
  }

  public BaseSqlMapDao(SqlMapClient sqlMapClient) {
    this.setSqlMapClient(sqlMapClient);
  }

  public SqlMapClient getSQLMapClient() {
    return getSqlMapClient();
  }

  private void setSqlMapClient(SqlMapClient sqlMapClient) {
    this.sqlMapClient = sqlMapClient;
  }

  private SqlMapClient getSqlMapClient() {
    return sqlMapClient;
  }

  protected static final int PAGE_SIZE = 10;
}
